<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title><s:property value='%{getText("emp_edit_title")}' /></title>
	<link href="/SCMDB/style/SuperEdit.css" rel="stylesheet"
			type="text/css" />
	<script type="text/javascript" src="/SCMDB/js/Super.js"></script>
	<script type="text/javascript" src="/SCMDB/emp/preview.js"></script>
<script type="text/javascript" src="/SCMDB/js/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="/SCMDB/js/jquery-1.4.2.js"></script>
</head>
<body>
<div class="main" id="main">
<s:form action="employeeAction!editEmp" theme="simple" enctype="multipart/form-data" method="post" onsubmit="return false;">
<s:hidden name="entity.id"></s:hidden>
  <!-- 主体开始 -->
  <table border="1" cellpadding="1" cellspacing="1" class="tableModify">
					<tr>
						<th >
							工程名称：
						</th>
						<td>
							<s:textfield name="entity.proName" title="工程名称" maxLength="50" cssStyle="width:100px"/> <span style="color:red">*</span>
							<input type="hidden" value="must-input" />
						</td>
					 <td align="right" rowspan="4" colspan="2" class="tdLeft" >
	      <div align="center">
	      	<s:if test="entity.empPhotoFileName == null">
	      	  <img src="/SCMDB/images/noEmpPhoto.gif" name="photo" width="80" height="100" id="photo" />
	      	</s:if>
	      	<s:else>
	    	  <img src="alarmAction!getImag.action?id=<s:property value='entity.id'/>" name="photo" width="80" height="100" id="photo" />
	    	</s:else> 
	      </div>
	    </td>
					</tr>
					<tr>
						<th>
							工程编号：
							
						</th>
						<td>
							<s:textfield name="entity.proID" title="工程编号" maxLength="20" /> <span style="color:red">*</span>
							<input type="hidden" value="must-input" />
						</td>
					</tr>
					<tr>
						<th>
							人员编号：
						</th>
						<td>
							<s:textfield name="entity.empWorkID" title="编号" maxLength="20" /> <span style="color:red">*</span>
							<input type="hidden" value="must-input" />
						</td>
					</tr>
					<tr>
						<th>
							<s:property value='%{getText("emp_new_kh")}' />
						</th>
						<td>
							<s:textfield name="entity.empLabelID" title="卡号" maxLength="8" /> <span style="color:red">*</span>
							<input type="hidden" value="must-input;must-number" />
							<br />
						</td>
					</tr>
					<tr>
						<th>
							<s:property value='%{getText("emp_new_xm")}' />
						</th>
						<td>
							<s:textfield maxLength="64" name="entity.empName" title="姓名" /> <span style="color:red">*</span>
							<input type="hidden" value="must-input" />
						</td>
					</tr>
					<tr>
						<th>
							<s:property value='%{getText("emp_new_shfz")}' />
						</th>
						<td>
							<s:textfield maxLength="64" name="entity.identityNo"
								 title="身份证"  cssStyle="width:100px" />
						</td>
						<td id="uploadTd" class="tdLeft" colspan="2">
							<s:file name="empPhoto" cssClass="inputFile" label="inputFile"
								onchange="previewImg(this)" />
						</td>
					</tr>
					<tr>
						<th>
							<s:property value='%{getText("emp_new_tel")}' />
						</th>
						<td >
							<s:textfield maxLength="20" name="entity.empPhone" title="电话" />
						</td>
								<th>
							分包单位：
						</th>
						<td colspan="3">
							<s:textfield maxLength="100" name="entity.unitName" title="分包单位"
								 cssStyle="width:100px"/> <span style="color:red">*</span>
							<input type="hidden" value="must-input" />	 
						</td>
					</tr>
					<tr>
						<th>
							<s:property value='%{getText("emp_new_sex")}' />
						</th>
						<td>
								<div class="right"><s:radio list="#{'1':'男','2':'女'}" name="entity.empSex" ></s:radio>
							</div>
						</td>
						<th>
							班组：
						</th>
						<td colspan="3">
							<s:select list="entity.listDepartment" name="entity.empDepID"
								listKey="id" listValue="deptName" headerKey="0"
								headerValue="--请选择--"></s:select>
						</td>
					</tr>
					<tr>
						<th>
							血型：
						</th>
							<td >
							<s:textfield maxLength="100" name="entity.blood" title="血型"
								 cssStyle="width:100px"/> 	
						</td>
						<th>
							部门：
						</th>
						<td colspan="3">
							<s:select list="entity.listBuMen" name="entity.empBuMenID"
								listKey="id" listValue="name" headerKey="0"
								headerValue="--请选择--"></s:select>
						</td>
					</tr>
					<tr>
						<th>
							户籍地址：
						</th>
						<td>
							<s:textfield maxLength="100" name="entity.empAddr" title="地址"
								cssClass="addr" value="-" />
						</td>
						<th>
							工种信息：
						</th>
						<td colspan="3">
							<s:select list="entity.listWorkType" name="entity.empWorkTypeID"
								listKey="id" listValue="name" headerKey="0"
								headerValue="--请选择--"></s:select>
						</td>
					</tr>
					<tr>
						<th>
							进场日期：
						</th>
						<td>
							<s:textfield maxLength="100" id="entryTime" name="entity.entryTime"
								title="进场日期"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\\\'entryTime\\\')}'})" />
						</td>
						<th>
							体检证明：
						</th>
						<td colspan="3">
						<div class="right"><s:radio list="#{'1':'是','2':'否'}" name="entity.spection" ></s:radio>
							</div>	
						</td>
					</tr>
					<tr>
						<th>
							合同办理：
						</th>
						<td>
						<div class="right"><s:radio list="#{'1':'是','2':'否'}" name="entity.contract" ></s:radio>
							</div>		
						</td>
						<th>
							办理日期：
						</th>
						<td colspan="3">
							<s:textfield maxLength="100" id="contractTime" name="entity.contractTime"
								title="办理日期"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\\\'contractTime\\\')}'})" />
						</td>
					</tr>
					<tr>
						<th>
							持证与否：
						</th>
						<td>
						<div class="right"><s:radio list="#{'1':'是','2':'否'}" name="entity.certificate" ></s:radio>
							</div>
						</td>
						<th>操作证书：</th>
						<td colspan="3">
							<s:textfield maxLength="100" name="entity.certificateName" title="操作证书" />
						</td>
					</tr>
					<tr>
						<th>
							上海市城镇保险：
						</th>
						<td>
						<div class="right"><s:radio list="#{'1':'是','2':'否'}" name="entity.townSecure" ></s:radio>
							</div>	
						
						</td>
						<th>
							其他保险 ：
						</th>
						<td colspan="3">
						<div class="right"><s:radio list="#{'1':'是','2':'否'}" name="entity.otherSecure" ></s:radio>
							</div>
						
						</td>
					</tr>
					<tr>
						<th>
							三级安全教育卡：
						</th>
						<td>
						<div class="right"><s:radio list="#{'1':'是','2':'否'}" name="entity.safeCard" ></s:radio>
							</div>	
						
						</td>
						<th>
							建卡日期 ：
						</th>
						<td colspan="3">
							
							<s:textfield maxLength="100" id="cardTime" name="entity.cardTime"
								title="建卡日期"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\\\'cardTime\\\')}'})" />
						</td>
					</tr>
					<tr>
						<th>
							安全生产上岗证：
						</th>
						<td>
						<div class="right"><s:radio list="#{'1':'是','2':'否'}" name="entity.safePosts" ></s:radio>
							</div>	
						
						</td>
						<th>
							发证日期 ：
						</th>
						<td colspan="3">
							<s:textfield maxLength="100" id="postsTime" name="entity.postsTime"
								title="发证日期"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\\\'postsTime\\\')}'})" />
						</td>
					</tr>
					<tr>
						<th>
							劳保用品发放：
						</th>
						<td>
							<div class="right"><s:radio list="#{'1':'是','2':'否'}" name="entity.track" ></s:radio>
							</div>	
							
							种类：
							<s:select list="entity.listDuty" name="entity.empDutyID"
								listKey="id" listValue="name" headerKey="0"
								headerValue="--请选择--"></s:select>
						</td>
						<th>
							发放日期 ：
						</th>
						<td colspan="3">
							<s:textfield maxLength="100" id="trackTime" name="entity.trackTime"
								title="发放日期"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\\\'trackTime\\\')}'})" />
						</td>
					</tr>
					<tr>
						<th>
							安全操作规程交底：
						</th>
						<td>
						<div class="right"><s:radio list="#{'1':'是','2':'否'}" name="entity.safeOption" ></s:radio>
							</div>	
						
							类别：
							<s:select list="entity.listTitle" name="entity.empTitleID"
								listKey="id" listValue="name" headerKey="0"
								headerValue="--请选择--"></s:select>
						</td>
						<th>
							交底日期 ：
						</th>
						<td colspan="3">
							<s:textfield maxLength="100" id="safeOptionTime" name="entity.safeOptionTime"
								title="交底日期"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\\\'safeOptionTime\\\')}'})" />
						</td>
					</tr>
					<tr>
						<th>
							"零违章"承若书签订：
						</th>
						<td>
						<div class="right"><s:radio list="#{'1':'是','2':'否'}" name="entity.orderBook" ></s:radio>
							</div>	
							
						</td>
						<th>
							签订日期 ：
						</th>
						<td colspan="3">
							<s:textfield maxLength="100" id="orderTime" name="entity.orderTime"
								title="签订日期"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\\\'orderTime\\\')}'})" />
						</td>
					</tr>
					<tr>
						<th>每日安全讲评：</th>
					<td>
					<div class="right"><s:radio list="#{'1':'是','2':'否'}" name="entity.safetys" ></s:radio>
							</div>	
					</td>
					<th>违章次数：</th>
					<td colspan="3">
					<s:textfield maxLength="100" name="entity.peccancys" title="违章次数"
								 cssStyle="width:100px" /> 	
								 	<input type="hidden" value="must-input;must-number" />
					</td>
					</tr>
					<tr>
						<th>人员类别：</th>
						<td colspan="5">
							<s:select list="#{1:'项目管理人员', 2:'项目作业人员', 3:'监理人员', 4:'安全员', 5:'外来人员'}" 
								listKey="key" listValue="value"  
								headerKey="0" headerValue="--请选择--" 
					            name="entity.empType" />

						</td>
					</tr>
					<%--

					<tr>
						<th>
							<s:property value='%{getText("emp_new_tzry")}' />
						</th>
						<td  colspan="5">
							<s:select list="#{'0':'否','1':'是'}" name="entity.empType"
								onchange="addDisplay()"></s:select>
						</td>
					</tr>
	  <tr id="hidTr1">
        <th><s:property value='%{getText("emp_new_ljset")}' /></th>
        <td colspan="5">
          	<s:property value='%{getText("emp_new_quyu")}' /><s:select name="areaList" list="entity.listArea" listKey="id" listValue="name"></s:select>
          	<img src="/SCMDB/images/add.gif" class="delImg" onclick="addObj('ctDivP','ctP',1)" title="添加" />
            <div id="ctDivP">
              <s:iterator id="relEmpArea" value="entity.listRelEmpAre">
                <p id="ctP">
            	  <input type="text" value="${relEmpArea.area.name}" readOnly="true"/><input type="hidden" name="entity.area" value="${relEmpArea.idArea}"/>
            	     <s:property value='%{getText("emp_edit_sjfw")}'/>
            	     	   <input type="text" name="entity.startTime" value="${relEmpArea.startTime}" title="开始时间" class="Wdate" id="d414" style="width:90px" onfocus="WdatePicker({dateFmt:'H:mm:ss'})"/>
	            		  ~<input type="text" name="entity.endTime" value="${relEmpArea.endTime}" title="结束时间" style="width:90px" class="Wdate" id="d414" onfocus="WdatePicker({dateFmt:'H:mm:ss'})"/>
            	  <img src='/SCMDB/images/del.gif' class='delImg' onclick='delLicense("ctP","ctDivP")' title='删除该项' />
                </p>
              </s:iterator>             
	        </div>
	    </td>
	  </tr>--%>
	</table> 
  <!-- 主体结束 -->
  </s:form>
</div>
</body>
</html>